﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pattern_Memento
{
    class Program
    {
        static void Main(string[] args)
        {
            Originator o = new Originator();
            Caretaker c = new Caretaker();

            o.State = "One World One Dream!";
            o.Show();

            c.memento = o.CreateMemento();
            o.State = "YEAH!";
            o.Show();

            o.SetMemento(c.memento);
            o.Show();
        }
    }
}
